//
//  KFDBOLLPriceLabel.m
//  KFD
//
//  Created by Lucky Luke on 8/15/15.
//  Copyright (c) 2015 kfd. All rights reserved.
//

#import "KFDBOLLPriceLabel.h"

@implementation KFDBOLLPriceLabel

-(void)setDiagramPoint:(KFDDiagramPoint *)diagramPoint
{
    _diagramPoint=diagramPoint;
    self.priceLabel.text=[NSString stringWithFormat:@"%.2f",diagramPoint.price.floatValue];
    self.paramLabel.text=@"(20,2)";
    NSNumber* up=diagramPoint.boll[1];
    NSNumber* mid=diagramPoint.boll[0];
    NSNumber* down=diagramPoint.boll[2];
    self.upLabel.text=[NSString stringWithFormat:@"UP:%.2f",up.floatValue];
    self.midLabel.text=[NSString stringWithFormat:@"MID%.2f",mid.floatValue];
    self.downLabel.text=[NSString stringWithFormat:@"DOWN:%.2f",down.floatValue];
}

@end
